from django.core.mail import EmailMessage
from celery import shared_task

@shared_task(name="send_email")
def send_email(mail_subject, message, to):
    email = EmailMessage(
        mail_subject,
        message,
        to=to
    )

    email.send()